import { axios } from '@/utils/request'

const api = {
  webMessage: '/msg/web-message',
  thirdMessage: '/msg/third-message'
}

/**
 * 应用消息统计
 * @param {*} params
 */
export function getMsgUnread (params) {
  return axios({
    url: api.webMessage + '/webUnreadMsgStatistics',
    method: 'get',
    params
  })
}

/**
 * 获取ws端口号
 */
export function getWsPort () {
  return axios({
    url: api.thirdMessage + '/ws-port',
    method: 'get'
  })
}
